package com.example.understandvideo.mapper;

import com.example.understandvideo.pojo.MarathonTask;
import com.example.understandvideo.pojo.request.MarathonTaskSearchRequest;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
public interface MarathonTaskDao {
    int deleteByPrimaryKey(Long id);

    int insert(MarathonTask record);

    int insertSelective(MarathonTask record);

    MarathonTask selectByPrimaryKey(Long id);

    Long count(MarathonTaskSearchRequest request);
    List<MarathonTask> search(MarathonTaskSearchRequest request);

    int updateByPrimaryKeySelective(MarathonTask record);

    int updateByPrimaryKey(MarathonTask record);
}